package com.ruoyi.lhky.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user")
public class User {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private String account;
    private String password;
    private Long workplaceId;
    private String department;
    private LocalDateTime createTime;
    private Long roleId;

    private Long status;

    @TableField(exist = false)
    private String workplaceName; // 添加此字段用于存储工作单位名称
}
